package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

import java.util.List;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(User user, Integer[] roleIds);

    public List<User> findAll();

    User findById(Integer id);

    public void edit(User user, Integer[] roleIds);

    List<Integer> findRoleIdsByUserId(Integer id);

    public void delete(Integer id);

}
